package com.exia.android.socialnet.facebook;

import android.view.View;

import com.exia.android.socialnet.session.auth.SimpleAuthListener;

public class FacebookAuthListener extends SimpleAuthListener {
	
	protected FacebookActivity activity;
	
	public FacebookAuthListener(){
		super();
	}
	
	public FacebookAuthListener(FacebookActivity activity_p){
		super();
		activity = activity_p;
	}
	
	/**
	 * 
	 * @return
	 */
	public FacebookActivity getFacebookActivity(){
		return activity;
	}
	
	/**
	 * 
	 * @param activity_p
	 */
	public void setFacebookActivity(FacebookActivity activity_p){
		activity = activity_p;
	}
	
	@Override
    public void onAuthSucceed() {
		if(activity != null){
			/*
			activity.mText.setText("You have logged in! ");
			activity.mRequestButton.setVisibility(View.VISIBLE);
			activity.mUploadButton.setVisibility(View.VISIBLE);
			activity.mPostButton.setVisibility(View.VISIBLE);
			*/
		}
    }

	@Override
    public void onAuthFail(String error) {
		if(activity != null){
			/*
			activity.mText.setText("Login Failed: " + error);
			*/
		}
    }
}
